package fr.cephb.util;

/** a class throwing an exception for security  if hashCode or equals are used but not overidden */
public class XObject
	{
	@Override
	public int hashCode()
		{
		throw new RuntimeException("hashCode called but not implemented in "+getClass());
		}
	
	@Override
	public boolean equals(Object obj) {
		throw new RuntimeException("equals called but not implemented in "+getClass());
		}
	
	@Override
	public String toString() {
		return "toString called but not implemented in "+getClass();
		}
	
	}
